import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'

import router from './router'
// 引入elementplus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconView from '@element-plus/icons-vue'

import pinia from './store'



const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn
})
    .use(pinia)
    .use(router).
    mount('#app')

// 全局注册组件
for (const [key, component] of Object.entries(ElementPlusIconView)) {
    app.component(key, component)
}